home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir38 / vga_doc2.zip / TRIDENT.TXT < prev    next >
Text File  |  1993-01-22  |  6KB  |  205 lines

  1.   Trident SuperVGA
  2.  
  3.   Trident 8800BR  512k   Only 128K banks.
  4.       8800CS  512k
  5.       8900    1M
  6.       8900C   1M
  7.       9000    Low component version 
  8.       LCD9100
  9.       LX9200
  10.    
  11.       The Trident 8800 chips have a problem with 256 color modes,
  12.       as they always double the pixels output in 256 color mode.
  13.       Thus a 640x400 256 color mode (5Ch) actually uses a 1280x400
  14.       frame, requiring at least a multi sync monitor.
  15.       This problem is fixed on the 8900.
  16.  
  17.  Apparently Trident BIOS version 3.xx or later on a 8900 will support HiColor DACs
  18.  Anybody got the details (modes, which DACs ...)?.
  19.  
  20.  
  21.  100h (R/W?): Microchannel ID low
  22.  bit 0-7  Card ID bit 0-7
  23.  
  24.  101h (R/W?): Microchannel ID high
  25.  bit 0-7  Card ID bit 8-15
  26.  
  27.  3C3h (R/W): Microchannel Video Subsystem Enable Register:
  28.  bit 0  Enable Microchannel VGA if set
  29.  
  30.  3C4h index  Bh (R): Chip Version
  31.  bit 0-3  Chip ID
  32.         1 = TR 8800BR
  33.         2 = TR 8800CS
  34.         3 = TR 8900
  35.         4 = TR 8900C   (Some sources say 3)
  36.      4-7  Reserved for 8800.
  37.       For 8900/9000: 0=8900B, 1=8900C, 2=9000, 8=LX9200, 9=LCD9100. 
  38.  
  39.  Note:  Writing to index Bh selects old mode registers.
  40.     Reading from index Bh toggles between old and new
  41.     mode registers.
  42.  Note:  Writing to this register in order to force old mode registers
  43.     should be done with two 8bit writes, not one 16bit write.
  44.  
  45.  3C4h index  Ch (R/W): Power Up Mode Register 1
  46.  
  47.  3C4h index  Dh (R/W): Old Mode Control 2
  48.  bit 0-2  Emulation mode
  49.       0=VGA, 3=EGA, 5=CGA,MDA,Hercules
  50.        4  Enable Paging mode if set
  51.  
  52.  3C4h index  Dh (R/W): New Mode Control 2
  53.          Contains timing info
  54.  Note: The old/new Mode Control 1/2 registers are selected by
  55.        reading and writing the Chip version register (index Bh).
  56.  
  57.  3C4h index  Eh (R/W): Old Mode Control 1
  58.  bit   0  (8900 Only) CRTC Address bit 17 (Show from upper 512kb if set)
  59.      1-2  128kb Bank number (0-3)
  60.        3  16 bit interface if set
  61.  
  62.  3C4h index  Eh (R/W): New Mode Control 1
  63.  bit 0-3  64k Bank nr. For write ops. xor bank number with 2,
  64.       for read ops use bank number directly.
  65.      4-7  Reserved
  66.  Note: The old/new Mode Control 1/2 registers are selected by
  67.        reading and writing the Chip version register (index Bh).
  68.  
  69.  3C4h index  Fh (R/W): Power-up Mode 2
  70.  bit 0-3  Switch settings
  71.        4  Bus type
  72.        5  If set I/O address are at 3xxh, else at 2xxh.
  73.        6  Enable ON-Card ROM if set
  74.        7  16 bit ROM access if set
  75.  
  76.  3d4h index 1Eh (R/W): Module Testing Register
  77.  bit 2  Vertical interlace if set
  78.      5  CRTC starting address bit 16
  79.      7  (8900 Only) Host address bit 16.
  80.     Enables 128k CRTC address if set
  81.  
  82.  3d4h index 1Fh (R/W): Software Programming Register  (8900 Only)
  83.  bit 0-1  Memory size  0=256k, 1=512k, 2=768k, 3=1M.
  84.  
  85.  3d4h index 1Fh (R/W): Scratch Register               (8800 Only)
  86.  bit 0  Paged memory mode in effect
  87.      1  Memory size  0=256k, 1=512k
  88.      2  Analog monitor attached
  89.      3  44.9 MHz oscillator present
  90.  Note: This register is set by software.
  91.  
  92.  3d4h index 22h (R): CPU Latch Read Back
  93.  bit 0-7  Data Latch value for current read plane.
  94.  
  95.  3d4h index 24h (R): Attribute State Read Back
  96.  bit 0-6  Reserved
  97.        7  Attribute Controller State
  98.       If set the next write to 3C0h will go to the data
  99.       register, if clear to the index register.
  100.  
  101.  3d4h index 26h (R): Attribute Index Read Back
  102.  bit 0-7  Attribute Index Register value
  103.  
  104.  
  105.  
  106.  46E8h (R):  Video Subsystem Enable Register
  107.  bit 3  Enable VGA if set
  108.  
  109.  
  110.  
  111.  
  112.   Bank selection:
  113.  
  114.     Trident VGAs can operate in 2 different modes:
  115.  
  116.     Old Mode, with a 128k window to display memory at A000h - BFFFh
  117.     and New Mode, with a 64k window to display memory at A000h - AFFFh.
  118.     Old/New mode is selected by reading/writing the Chip Version Register
  119.     (3C4h index 0Bh).
  120.     Each mode has its own registers at 3C4h index 0Dh and 0Eh.
  121.  
  122.  
  123.   ID Trident VGA:
  124.  
  125.     wrinx($3c4,11,0);    {Force old_mode_registers}
  126.     chp:=inp($3c5);      {Read chip ID and switch to new_mode_registers}
  127.     old:=rdinx($3c4,14);
  128.     outp($3c5,0);
  129.     value:=inp($3c5) and 15;
  130.     outp($3c5,old);
  131.  
  132.     if value=2 then
  133.       case chp of
  134.     1:Trident TR8800BR;
  135.     2:Trident TR8800CS;
  136.     3:Trident TR8900;
  137.       $13:Trident TR8900C;
  138.       $23:Trident TR9000;
  139.       $83:Trident LX9200;
  140.       $93:Trident LCD9100
  141.       end;
  142.     
  143.  
  144.   Video Modes:
  145.     50h  T    80   30  16  (8x16)
  146.     51h  T    80   43  16  (8x11)
  147.     52h  T    80   60  16  (8x8)
  148.     53h  T   132   25  16  (8x14)
  149.     54h  T   132   30  16  (8x16)
  150.     55h  T   132   43  16  (8x11)
  151.     56h  T   132   60  16  (8x8)
  152.     57h  T   132   25  16  (9x14)
  153.     58h  T   132   30  16  (9x16)
  154.     59h  T   132   43  16  (9x11)
  155.     5Ah  T   132   60  16  (9x8)
  156.     5Bh  G   800  600  16  planar
  157.     5Ch  G   640  400 256  packed
  158.     5Dh  G   640  480 256  packed
  159.     5Eh  G   800  600 256  packed           (Undocumented on 8800)
  160.     5Fh  G  1024  768  16  planar
  161.     60h  G  1024  768   4                   8900 Only
  162.     61h  G   768 1024  16  planar
  163.     62h  G  1024  768 256  packed           8900 Only
  164.  
  165.  
  166.     ZyMOS POACH51 modes:
  167.  
  168.     60h  G   960  720  16  planar
  169.     61h  G  1280  640  16  planar
  170.     62h  G   512  512 256  packed
  171.     63h  G   720  540  16  planar
  172.     64h  G   720  540 256  packed
  173.     6Ah  G   800  600  16  planar
  174.  
  175.  
  176.   Everex Viewpoint use Everex modes.
  177.  
  178.  
  179.   Bios extensions:
  180.  
  181. ----------1000-------------------------------
  182. INT 10 - VIDEO - SET VIDEO MODE
  183.  
  184.   ....
  185.  
  186. Return: AH = Status of call:  (Trident Super VGA Chips)
  187.  
  188.             Trident 8800            Trident 8900
  189.          00h   Successful                do
  190.          80h   Fail. Wrong switch        do
  191.          81h   Insufficient Video        do
  192.            Memory.
  193.          82h   The 36MHz crystal        Mode not supported
  194.            cannot support the
  195.            mode
  196.          83h   The 40MHz crystal        Mode not supported
  197.            cannot support the
  198.            mode.
  199.          84h   The 44.9MHz crystal      Mode not supported
  200.            cannot support the
  201.            mode.
  202.          85h   Dead or no crystal
  203.          86h                            Wrong CRTC base for dual screen
  204.          87h                            Text mode not supported
  205.